#pragma once
#include "afxcmn.h"


// CDeviceDlg dialog

class CDeviceDlg : public CDialog
{
	DECLARE_DYNAMIC(CDeviceDlg)

public:
	CDeviceDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDeviceDlg();
	CString GetSelDeviceName() const {return m_strDeviceName;}
	CString GetSelDeviceClass() const {return m_strDeviceClass;}

// Dialog Data
	enum { IDD = IDD_DLG_ADD_NEWDEVICE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();

	afx_msg void OnSelDevicechanged(NMHDR *pNMHDR, LRESULT *pResult);

	DECLARE_MESSAGE_MAP()

private:
	int LoadSysConfig();

	CTreeCtrl m_treeDevices;
	CString m_strDeviceName;
	CString m_strDeviceClass;

};
